﻿using Microsoft.EntityFrameworkCore;
using RepositoryEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IRepositoryDal
{
    /// <summary>
    /// 用户数据访问层接口
    /// </summary>
    public interface IUserInfoDal: IBaseDal<UserInfo>
    {
        ///// <summary>
        ///// 添加用户信息
        ///// </summary>
        ///// <returns></returns>
        //bool AddUserInfo(UserInfo userInfo);

        ///// <summary>
        ///// 删除用户信息
        ///// </summary>
        ///// <returns></returns>
        //bool DeleteUserInfo(string userInfoId);

        ///// <summary>
        ///// 更新用户信息
        ///// </summary>
        ///// <param name="userInfo"></param>
        ///// <returns></returns>
        //bool UpdateUserInfo(UserInfo userInfo);


        /// <summary>
        /// 获取单个用户
        /// </summary>
        /// <param name="userInfoId"></param>
        /// <returns></returns>
        UserInfo GetUserInfo(string userInfoId);

        /// <summary>
        /// 获取用户集合
        /// </summary>
        /// <returns></returns>
        List<UserInfo> GetUserInfos();

        /// <summary>
        /// 获取用户集合（未真正查询）
        /// </summary>
        /// <returns></returns>
        public DbSet<UserInfo> GetUserInfosDb();
    }
}
